package com.dux.shiro1.service;

import com.dux.shiro1.domin.User;
import com.dux.shiro1.jpa.UserRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {

    @Autowired
    private UserRepo userRepo;

    public User getUser(String username,String password){
        return userRepo.findByUsernameAndPasswordHash(username, password);
    }


}
